package com.cloud.wms.ui.inside.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by FC on 2021/5/20.
 * Desc：
 */
public class TransferUpEntity implements Parcelable {
    private String containerID;
    private String containerCode;
    private ArrayList<TransferCommodityEntity> commodityList;

    public TransferUpEntity() {
        
    }

    public String getContainerID() {
        return containerID;
    }

    public void setContainerID(String containerID) {
        this.containerID = containerID;
    }

    public String getContainerCode() {
        return containerCode;
    }

    public void setContainerCode(String containerCode) {
        this.containerCode = containerCode;
    }

    public ArrayList<TransferCommodityEntity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(ArrayList<TransferCommodityEntity> commodityList) {
        this.commodityList = commodityList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(containerID);
        dest.writeString(containerCode);
        dest.writeTypedList(commodityList);
    }

    public TransferUpEntity(Parcel in) {
        containerID = in.readString();
        containerCode = in.readString();
        commodityList = in.createTypedArrayList(TransferCommodityEntity.CREATOR);
    }

    public static final Creator<TransferUpEntity> CREATOR = new Creator<TransferUpEntity>() {
        @Override
        public TransferUpEntity createFromParcel(Parcel in) {
            return new TransferUpEntity(in);
        }

        @Override
        public TransferUpEntity[] newArray(int size) {
            return new TransferUpEntity[size];
        }
    };
}
